package org.test.code.thread.lock;

public class ThreadObject implements Runnable{
	
	private LockTestObject obj;

	public ThreadObject(LockTestObject obj){
		this.obj = obj;
	}
	
	@Override
	public void run() {
		for (int i = 0; i < 20; i++) {
			obj.addValue(i*2);
		}
	}

}
